import React from 'react'
import ReactDOM from 'react-dom/client'
 import Router from './router/index'
 import {BrowserRouter} from 'react-router-dom'
 import './assets/css/index.css'

 import {Provider} from 'react-redux'
import {store,persistor} from './store/store'
import { PersistGate } from "redux-persist/integration/react";

ReactDOM.createRoot(document.getElementById('root') as HTMLElement).render(
  <Provider store={store}>
     <PersistGate loading={null} persistor={persistor}>
  <BrowserRouter>
     <Router></Router>
  </BrowserRouter>
  </PersistGate>
  </Provider>
)
